<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: aruntime/src/main/java/nars/io/ExperienceWriter.java Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('de/d8a/ExperienceWriter_8java_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">ExperienceWriter.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../de/d8a/ExperienceWriter_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * ExperienceReader.java</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Copyright (C) 2008  Pei Wang</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * This file is part of Open-NARS.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Open-NARS is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * the Free Software Foundation, either version 2 of the License, or</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * Open-NARS is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * along with Open-NARS.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">package </span>nars.io;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">import</span> java.awt.FileDialog;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">import</span> java.io.*;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">import</span> java.util.*;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter.html">   33</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter.html">ExperienceWriter</a> <span class="keyword">implements</span> <a class="code" href="../../d2/d60/interfacenars_1_1io_1_1OutputChannel.html">OutputChannel</a> {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f.html#a1623cd330931e9d39d5bfb951b2a611f">   35</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>.<a class="code" href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch.html">ReasonerBatch</a> <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f.html#a1623cd330931e9d39d5bfb951b2a611f">reasoner</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a7e62220465c2a880f50cf957d460689b.html#a7e62220465c2a880f50cf957d460689b">   37</a></span>&#160;    <span class="keyword">private</span> PrintWriter <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a7e62220465c2a880f50cf957d460689b.html#a7e62220465c2a880f50cf957d460689b">outExp</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a2870ce022543a685ec1e014acccb1d70.html#a2870ce022543a685ec1e014acccb1d70">   42</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a2870ce022543a685ec1e014acccb1d70.html#a2870ce022543a685ec1e014acccb1d70">ExperienceWriter</a>(<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>.<a class="code" href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch.html">ReasonerBatch</a> <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f.html#a1623cd330931e9d39d5bfb951b2a611f">reasoner</a>) {</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        this.<a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f.html#a1623cd330931e9d39d5bfb951b2a611f">reasoner</a> = <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f.html#a1623cd330931e9d39d5bfb951b2a611f">reasoner</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    }</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a25c30f2e9a2ad7d9e019cdf8c40bef70.html#a25c30f2e9a2ad7d9e019cdf8c40bef70">   46</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a25c30f2e9a2ad7d9e019cdf8c40bef70.html#a25c30f2e9a2ad7d9e019cdf8c40bef70">ExperienceWriter</a>(<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>.<a class="code" href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch.html">ReasonerBatch</a> <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f.html#a1623cd330931e9d39d5bfb951b2a611f">reasoner</a>, PrintWriter outExp) {</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <span class="keyword">this</span>(<a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f.html#a1623cd330931e9d39d5bfb951b2a611f">reasoner</a>);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        this.outExp = <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a7e62220465c2a880f50cf957d460689b.html#a7e62220465c2a880f50cf957d460689b">outExp</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    }</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a41589d1fc16d5b14efbce8ec122e5abc.html#a41589d1fc16d5b14efbce8ec122e5abc">   54</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a41589d1fc16d5b14efbce8ec122e5abc.html#a41589d1fc16d5b14efbce8ec122e5abc">openSaveFile</a>() {</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        FileDialog dialog = <span class="keyword">new</span> FileDialog((FileDialog) null, <span class="stringliteral">&quot;Save experience&quot;</span>, FileDialog.SAVE);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        dialog.setVisible(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        String directoryName = dialog.getDirectory();</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        String fileName = dialog.getFile();</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            outExp = <span class="keyword">new</span> PrintWriter(<span class="keyword">new</span> FileWriter(directoryName + fileName));</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        } <span class="keywordflow">catch</span> (IOException ex) {</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            System.out.println(<span class="stringliteral">&quot;i/o error: &quot;</span> + ex.getMessage());</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        }</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f.html#a1623cd330931e9d39d5bfb951b2a611f">reasoner</a>.addOutputChannel(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    }</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a009a142eb85523829d78feb82c0842c4.html#a009a142eb85523829d78feb82c0842c4">   70</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a009a142eb85523829d78feb82c0842c4.html#a009a142eb85523829d78feb82c0842c4">closeSaveFile</a>() {</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        outExp.close();</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f.html#a1623cd330931e9d39d5bfb951b2a611f">reasoner</a>.removeOutputChannel(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    }</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a0bfdf19e8be61bba2518e6dbc1eb06f1.html#a0bfdf19e8be61bba2518e6dbc1eb06f1">   79</a></span>&#160;    @Override <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a0bfdf19e8be61bba2518e6dbc1eb06f1.html#a0bfdf19e8be61bba2518e6dbc1eb06f1">nextOutput</a>(List&lt;String&gt; lines) {</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="keywordflow">if</span> (outExp != null) {</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;            <span class="keywordflow">for</span> (Object line : lines) {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                outExp.println(line.toString());</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        }</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    }</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    @Override</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_ad2a145fa7221a7050536c5212ec982eb.html#ad2a145fa7221a7050536c5212ec982eb">   89</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_ad2a145fa7221a7050536c5212ec982eb.html#ad2a145fa7221a7050536c5212ec982eb">tickTimer</a>() {       </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    }</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
<div class="ttc" id="classnars_1_1io_1_1ExperienceWriter_a009a142eb85523829d78feb82c0842c4_html_a009a142eb85523829d78feb82c0842c4"><div class="ttname"><a href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a009a142eb85523829d78feb82c0842c4.html#a009a142eb85523829d78feb82c0842c4">nars.io.ExperienceWriter.closeSaveFile</a></div><div class="ttdeci">void closeSaveFile()</div><div class="ttdoc">Close an output experience file. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d8a/ExperienceWriter_8java_source.html#l00070">ExperienceWriter.java:70</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1ExperienceWriter_a41589d1fc16d5b14efbce8ec122e5abc_html_a41589d1fc16d5b14efbce8ec122e5abc"><div class="ttname"><a href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a41589d1fc16d5b14efbce8ec122e5abc.html#a41589d1fc16d5b14efbce8ec122e5abc">nars.io.ExperienceWriter.openSaveFile</a></div><div class="ttdeci">void openSaveFile()</div><div class="ttdoc">Open an output experience file. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d8a/ExperienceWriter_8java_source.html#l00054">ExperienceWriter.java:54</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1ExperienceWriter_a25c30f2e9a2ad7d9e019cdf8c40bef70_html_a25c30f2e9a2ad7d9e019cdf8c40bef70"><div class="ttname"><a href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a25c30f2e9a2ad7d9e019cdf8c40bef70.html#a25c30f2e9a2ad7d9e019cdf8c40bef70">nars.io.ExperienceWriter.ExperienceWriter</a></div><div class="ttdeci">ExperienceWriter(Memory.ReasonerBatch reasoner, PrintWriter outExp)</div><div class="ttdef"><b>Definition:</b> <a href="../../de/d8a/ExperienceWriter_8java_source.html#l00046">ExperienceWriter.java:46</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_html"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory.html">nars.storage.Memory</a></div><div class="ttdoc">The memory of the system. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00051">Memory.java:51</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1ExperienceWriter_ad2a145fa7221a7050536c5212ec982eb_html_ad2a145fa7221a7050536c5212ec982eb"><div class="ttname"><a href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_ad2a145fa7221a7050536c5212ec982eb.html#ad2a145fa7221a7050536c5212ec982eb">nars.io.ExperienceWriter.tickTimer</a></div><div class="ttdeci">void tickTimer()</div><div class="ttdoc">Update timer and its display. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d8a/ExperienceWriter_8java_source.html#l00089">ExperienceWriter.java:89</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f_html_a1623cd330931e9d39d5bfb951b2a611f"><div class="ttname"><a href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a1623cd330931e9d39d5bfb951b2a611f.html#a1623cd330931e9d39d5bfb951b2a611f">nars.io.ExperienceWriter.reasoner</a></div><div class="ttdeci">Memory.ReasonerBatch reasoner</div><div class="ttdef"><b>Definition:</b> <a href="../../de/d8a/ExperienceWriter_8java_source.html#l00035">ExperienceWriter.java:35</a></div></div>
<div class="ttc" id="namespacenars_1_1storage_html"><div class="ttname"><a href="../../de/ddc/namespacenars_1_1storage.html">nars.storage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00021">Bag.java:21</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1ExperienceWriter_a2870ce022543a685ec1e014acccb1d70_html_a2870ce022543a685ec1e014acccb1d70"><div class="ttname"><a href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a2870ce022543a685ec1e014acccb1d70.html#a2870ce022543a685ec1e014acccb1d70">nars.io.ExperienceWriter.ExperienceWriter</a></div><div class="ttdeci">ExperienceWriter(Memory.ReasonerBatch reasoner)</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d8a/ExperienceWriter_8java_source.html#l00042">ExperienceWriter.java:42</a></div></div>
<div class="ttc" id="namespacenars_html"><div class="ttname"><a href="../../d7/d81/namespacenars.html">nars</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1ExperienceWriter_a0bfdf19e8be61bba2518e6dbc1eb06f1_html_a0bfdf19e8be61bba2518e6dbc1eb06f1"><div class="ttname"><a href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a0bfdf19e8be61bba2518e6dbc1eb06f1.html#a0bfdf19e8be61bba2518e6dbc1eb06f1">nars.io.ExperienceWriter.nextOutput</a></div><div class="ttdeci">void nextOutput(List&lt; String &gt; lines)</div><div class="ttdoc">Process the next chunk of output data. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d8a/ExperienceWriter_8java_source.html#l00079">ExperienceWriter.java:79</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1ExperienceWriter_html"><div class="ttname"><a href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter.html">nars.io.ExperienceWriter</a></div><div class="ttdoc">To read and write experience as Task streams. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d8a/ExperienceWriter_8java_source.html#l00033">ExperienceWriter.java:33</a></div></div>
<div class="ttc" id="interfacenars_1_1io_1_1OutputChannel_html"><div class="ttname"><a href="../../d2/d60/interfacenars_1_1io_1_1OutputChannel.html">nars.io.OutputChannel</a></div><div class="ttdoc">An interface to be implemented in all output channel. </div><div class="ttdef"><b>Definition:</b> <a href="../../dc/dfd/OutputChannel_8java_source.html#l00012">OutputChannel.java:12</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1ReasonerBatch_html"><div class="ttname"><a href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch.html">nars.storage.Memory.ReasonerBatch</a></div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00853">Memory.java:853</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1ExperienceWriter_a7e62220465c2a880f50cf957d460689b_html_a7e62220465c2a880f50cf957d460689b"><div class="ttname"><a href="../../d0/d5d/classnars_1_1io_1_1ExperienceWriter_a7e62220465c2a880f50cf957d460689b.html#a7e62220465c2a880f50cf957d460689b">nars.io.ExperienceWriter.outExp</a></div><div class="ttdeci">PrintWriter outExp</div><div class="ttdoc">Input experience from a file. </div><div class="ttdef"><b>Definition:</b> <a href="../../de/d8a/ExperienceWriter_8java_source.html#l00037">ExperienceWriter.java:37</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_ed82ebcd34e530b246c6fd9032262140.html">aruntime</a></li><li class="navelem"><a class="el" href="../../dir_19496ddff8e6c0f2b6654287ecb1a472.html">src</a></li><li class="navelem"><a class="el" href="../../dir_db9c5934f797909f7296c2c2017f7fc9.html">main</a></li><li class="navelem"><a class="el" href="../../dir_6d74390eb6d6287951075e525bcb9bed.html">java</a></li><li class="navelem"><a class="el" href="../../dir_51a24984472456d47100350cd31f9a7c.html">nars</a></li><li class="navelem"><a class="el" href="../../dir_aab9dfc51d7cf7443c970bdaa3292fa7.html">io</a></li><li class="navelem"><a class="el" href="../../de/d8a/ExperienceWriter_8java.html">ExperienceWriter.java</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:58 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
